import { ref, onMounted, getCurrentInstance } from "vue"
import { defineStore } from "pinia"

export const useMapStore = defineStore("map", () => {
  let $map
  const docLayer = ref(null)
  docLayer.value = new Zondy.Map.Doc("", "guanggu", {})
  onMounted(() => {
    const { proxy } = getCurrentInstance()
    $map = proxy.$map
  })



  return { docLayer }
})
